home *** CD-ROM | disk | FTP | other *** search
/ SGI Developer Toolbox 6.1 / SGI Developer Toolbox 6.1 - Disc 4.iso / public / SciAn / src / ScianIcons.h < prev    next >
C/C++ Source or Header  |  1994-08-01  |  4KB  |  125 lines

  1. /*ScianIcons.h
  2.   Eric Pepke
  3.   March 22, 1990
  4.   Public stuff for icons
  5. */
  6.  
  7. #define ICONSIZE    32    /*Number of pixels an icon is wide*/
  8. #define ICONSHADOW    8    /*Offset down to shadow of icon*/
  9. #define ICONTEXTOFFSET    19    /*Offset down to an icon's text.*/
  10. #if MACHINE == RS6000
  11. #define ICONINVALEXTRA  50    /*Extra stuff to inval on side of icon*/
  12. #else
  13. #define ICONINVALEXTRA    0
  14. #endif
  15.  
  16. /*Icon IDs*/
  17. #define ICON3DSCALAR    32    /*3-D scalar field*/
  18. #define ICONPHYSOBJ    33    /*Physical object*/
  19. #define ICONMESH    34    /*Mesh*/
  20. #define ICONVECTORS    35    /*Series of vectors*/
  21. #define ICONBOX        36    /*Box attributes*/
  22. #define ICONISOSURFACE    37    /*Isosurface and level*/
  23. #define ICON2DSCALAR    38    /*2-D scalar field*/
  24. #define ICONMATERIAL    39    /*Material properties*/
  25. #define ICONQUESTION    40    /*Big question mark*/
  26. #define ICONGEOMETRY    41    /*Geometry icon*/
  27. #define ICONSLICE    42    /*Slice through a field*/
  28. #define ICONSTOP    43    /*Stop button*/
  29. #define ICONPLAY    44    /*Play button*/
  30. #define ICONREV        45    /*Reverse play button*/
  31. #define ICONFF        46    /*Fast forward button*/
  32. #define ICONFR        47    /*Fast reverse button*/
  33. #define ICONPARENT      48    /*Parent of a directory*/
  34. #define ICONDIMDIF    49    /*Dim diffuse icon*/
  35. #define ICONBRTDIF    50    /*Bright diffuse icon*/
  36. #define ICONDIMTIGHT    51    /*Dim tight icon*/
  37. #define ICONBRTTIGHT    52    /*Bright tight icon*/
  38. #define ICONCLOCK    53    /*Clock icon*/
  39. #define ICONLIGHTS    54    /*Lights icon*/
  40. #define ICONOBSERVER    55    /*Eyeball icon*/
  41. #define ICONFOLDER      56
  42. #define ICONBINFILE    57
  43. #define ICONDATAFILE    58
  44. #define ICONTEXTFILE    59
  45. #define ICONOBJFILE    60
  46. #define ICONUNKNOWN    61
  47. #define ICON4DSCALAR    62    /*4d + scalar field*/
  48. #define ICONGRID    63    /*GRID icon*/
  49. #define ICONJUSTDATA    64    /*Data for dataset*/
  50. #define ICONCONTOURS    65    /*Contours*/
  51. #define ICONCOLOR    66    /*Color*/
  52. #define ICONTRACE    67    /*Tracer*/
  53. #define ICONRENDERER    68    /*Renderer*/
  54. #define ICON1DSCALAR    69    /*1D Scalar Field*/
  55. #define ICON2DVECTOR    70    /*2D Vector Field*/
  56. #define ICON3DVECTOR    71    /*3D Vector Field*/
  57. #define ICON4DVECTOR    72    /*4 or more D Vector field*/
  58. #define ICONSCIANDOC    73    /*SciAn document icon*/
  59. #define ICONPOINTS    74    /*Points icon*/
  60. #define ICONAXES    75    /*Axes icon*/
  61. #define ICONWALLS    76    /*Walls icon*/
  62. #define ICONCTABLE    77    /*Color table icon*/
  63. #define ICONFREEFORM    78    /*Freeform tool icon*/
  64. #define ICONSINE    79    /*Sine tool icon*/
  65. #define ICONTRIANGLE    80    /*Triangle tool icon*/
  66. #define ICONSAWTOOTH    81    /*Sawtooth tool icon*/
  67. #define ICONTOOTHSAW    82    /*Toothsaw tool icon*/
  68. #define ICONSQUARE    83    /*Square wave tool icon*/
  69. #define ICONARROWS    84    /*Arrows icon*/
  70. #define ICONFILEREADER    85    /*File reader icon*/
  71. #define ICONDEFORM    86    /*Deform icon*/
  72. #define ICONPROCESS    87    /*Running process*/
  73. #define ICONWORKSTATION    88    /*Workstation*/
  74. #define ICONCOMPUTER    89    /*Computer*/
  75. #define ICONNWES    90    /*Arrows tool icon*/
  76. #define ICONANNOTATION    91    /*Annotation icon*/
  77. #define ICONRECTANGLE    92    /*Rectangle icon*/
  78. #define ICONLINE    93    /*Line icon*/
  79. #define ICONFINGER    94    /*Finger icon*/
  80. #define ICONMOVEROTATE  95    /*3-D move/rotate*/
  81. #define ICONLENGTH    96    /*Icon for length*/
  82. #define ICONWIDTH    97    /*Icon for width*/
  83. #define ICONPLANE    98    /*Airplane icon*/
  84. #define ICON3DFINGER    99    /*3-D finger*/
  85. #define ICONBALLS    100    /*Balls*/
  86. #define ICONVISSIZE    101    /*Size*/
  87. #define ICONNOTE    102    /*Note*/
  88. #define ICONMETER    103    /*Meter*/
  89. #define ICONSTICKS    104    /*Sticks visualization object*/
  90. #define ICONLINES    105    /*Lines vis object*/
  91. #define ICONDOTS    106    /*Dots vis object*/
  92. #define ICONRIGHTEXP    107    /*Right control panex expansion icon*/
  93. #define ICONMISSING    108    /*Missing data icon*/
  94. #define ICONRECORDER    109    /*Recorder*/
  95. #define ICONCOMM    110    /*Communications icon*/
  96. #define ICONSTAR    111    /*Little star icon*/
  97. #define ICONFRAME    112    /*Recorder frame icon*/
  98. #define ICONLGLASSES    113    /*Left glasses icon*/
  99. #define ICONRGLASSES    114    /*Right glasses icon*/
  100. #define ICONPLACEMENT    115    /*Placement*/
  101. #define ICONGLASSES    116    /*Glasses*/
  102.  
  103. /*Draw icon flags*/
  104. #define DI_DRAWFORE    1    /*Draw the foreground*/
  105. #define DI_DRAWBACK    2    /*Draw the background*/
  106. #define DI_DRAWSHADOW    4    /*Draw the shadow*/
  107. #define DI_SMALLTEXT    8    /*Draw using smaller text*/
  108. #define DI_GREY        16    /*Draw in grey*/
  109.  
  110. extern ObjPtr iconClass;    /*Class of all icons*/
  111. extern int iconXOff, iconYOff;    /*Offsets for icons on dragging*/
  112. extern int rainbowColor[];
  113.  
  114. #ifdef PROTO
  115. void InitIcons(void);
  116. void DrawIcon(int, int, int, char *, char *, int, int);
  117. void DrawIconGhost(ObjPtr, int, int);
  118. ObjPtr NewIcon(int, int, int, char *);
  119. #else
  120. void InitIcons();
  121. void DrawIcon();
  122. ObjPtr NewIcon();
  123. void DrawIconGhost();
  124. #endif
  125.